
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.前言 · Flutter for Harmony教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="坚果派">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-mind-maps/mindmaps.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="为什么要写博客.md" />
    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
         
<div class="donate-modal modal">
  <div class="modal-header">
    <div>
      <span>
        <img
          id="modal-avatar"
          class="modal-avatar"
          src="http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"
        />
      </span>
      <span id="nickname"> breeze </span>
      <p class="modal-close close" onclick="closeDonateModal()">×</p>
    </div>
    <div class="message">
      <div class="tip">
        <i></i>
        <span>随意打赏，但不要超过一顿早餐钱 💕</span>
      </div>
    </div>
  </div>
  <div class="modal-content">
    <div class="modal-pay-way">
      <div id="wxpay" onclick="showDonateImg(0)">
        <input
          type="radio"
          name="pay-way"
          value="wxpay"
          class="zs-type"
          checked="checked"
        />
        <span>
          <img
            id="wxpay-logo"
            src=""
          />
        </span>
      </div>
      <div id="alipay" onclick="showDonateImg(1)">
        <input type="radio" name="pay-way" value="alipay" class="zs-type" />
        <span>
          <img
            id="alipay-logo"
            src=""
          />
        </span>
      </div>
    </div>
    <div class="modal-pay-qrcode">
      <img id="wxpay-code" src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png" />
      <img
        id="alipay-code"
        src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png"
        hidden
      />
    </div>
  </div>
</div>
<div class="mask"></div>


<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://www.gitbook.com/" target="_blank">坚果派官网</a>
      </li><li>
        <a href="https://www.npmjs.com/package/package" target="_blank">ArkUI实战</a>
      </li><li>
        <a href="https://space.bilibili.com/480883651" target="_blank">元服务开发实践</a>
      </li><li>
        <a href="https://blog.51cto.com/jianguo" target="_blank">OpenHarmony应用开发</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    1.前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="为什么要写博客.md">
            
                <span>
            
                    
                    2.为什么要这个专栏？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    3.Flutter与Dart介绍
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" >
            
                <span>
            
                    
                    3.1Flutter介绍
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" >
            
                <span>
            
                    
                    3.2Dart介绍
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    4.HarmonyOS/OpenHarmony与ArkTS介绍
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" >
            
                <span>
            
                    
                    4.1HarmonyOS Next
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" >
            
                <span>
            
                    
                    4.2OpenHarmony
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" >
            
                <span>
            
                    
                    4.3ArkTS语言
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    5.鸿蒙Flutter开发环境配置（windows与mac）
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    5.1windows环境配置
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" >
            
                <span>
            
                    
                    5.2 mac环境配置
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    6.在鸿蒙应用中添加Flutter页面
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用 FlutterPage.md">
            
                    
                    6.1如何使用 FlutterPage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用混合开发添加跳转 FlutterEntry.md">
            
                    
                    6.2如何使用混合开发添加跳转 FlutterEntry
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    7.在鸿蒙应用中使用Flutter Channel能力
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用Flutter与鸿蒙通信 FlutterChannel.md">
            
                    
                    7.1如何使用Flutter与鸿蒙通信 FlutterChannel
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                    8.与原生混合渲染
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/Flutter OHOS外接纹理适配简介.md">
            
                    
                    8.1Flutter OHOS外接纹理适配简介.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用多引擎 FlutterEngineGroup.md">
            
                    
                    8.2如何使用多引擎 FlutterEngineGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用PlatformView.md">
            
                    
                    8.3如何使用PlatformView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/PlatformView同层渲染方案适配切换指导.md">
            
                    
                    8.4PlatformView同层渲染方案适配切换指导
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    9.开发Flutter静态库
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用混合开发 module.md">
            
                    
                    开发module
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发package.md">
            
                    
                    开发package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发plugin.md">
            
                    
                    开发plugin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发FFI plugin.md">
            
                    
                    开发FFI plugin
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" >
            
                <span>
            
                    
                    10.开发Harmony静态库
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" >
            
                <span>
            
                    
                    创建及发布三方库
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" >
            
                <span>
            
                    
                    11.鸿蒙适配Flutter三方库
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" >
            
                <span>
            
                    
                    ohos平台适配flutter三方库
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" >
            
                <span>
            
                    
                    12.1DevTool使用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" >
            
                <span>
            
                    
                    12.1DevTool使用
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/05_performance/performance-delimitation.md">
            
                    
                    12.2性能分析定界(OpenHarmony平台)指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/05_performance/performance-threads-sequence.md">
            
                    
                    12.3性能分析第一步-梳理线程顺序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/05_performance/performance-frame-rendering-tracking.md">
            
                    
                    12.4性能分析-帧渲染跟踪
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/05_performance/performance-sliding-response-time.md">
            
                    
                    12.5性能分析-滑动响应时延
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" >
            
                <span>
            
                    
                    13.FAQ
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/environment.md">
            
                    
                    13.1环境相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/ohos_engine.md">
            
                    
                    ohos引擎产物编译相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/ohos_hap.md">
            
                    
                    ohos应用编译相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/ohos_code.md">
            
                    
                    ohos代码开发相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/ohos_run.md">
            
                    
                    ohos运行相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/README.md">
            
                    
                    功能开发相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.7" >
            
                <a target="_blank" href="https://gitee.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/08_FAQ/flutter_cppcrash_guideline.md">
            
                    
                    解析flutter相关的cppcrash堆栈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" >
            
                <span>
            
                    
                    14.迁移实战
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" >
            
                <span>
            
                    
                    15.阅读更多
            
                </span>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >1.前言</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             
                <div id="vip-container">
                    <h2 id="&#x524D;&#x8A00;"><a name="&#x524D;&#x8A00;" class="plugin-anchor" href="#&#x524D;&#x8A00;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x524D;&#x8A00;</h2>
<p>&#x5173;&#x6CE8;&#x5230;&#x76EE;&#x524D;&#x5F88;&#x591A;&#x4EBA;&#x90FD;&#x5F88;&#x662F;&#x5173;&#x6CE8;Flutter For Harmony &#x4E8E;&#x662F;&#x96C6;&#x5408;&#x575A;&#x679C;&#x6D3E;&#x7684;&#x529B;&#x91CF;&#xFF0C;&#x5229;&#x7528;&#x4E1A;&#x4F59;&#x65F6;&#x95F4;&#x5199;&#x4E86;&#x8FD9;&#x672C;&#x5165;&#x95E8;&#x7684;&#x300A;Flutter For Harmony &#x4E8E;&#x300B;&#x7535;&#x5B50;&#x4E66;&#x5E76;&#x628A;&#x5B83;&#x6302;&#x5230;&#x7F51;&#x7AD9;&#x4E0A;&#xFF0C;&#x5E0C;&#x671B;&#x80FD;&#x7ED9;&#x8BFB;&#x8005;&#x5E26;&#x6765;&#x4E00;&#x70B9;&#x5E2E;&#x52A9;&#xFF0C;&#x4E5F;&#x7B97;&#x4E3A; OpenHarmony &#x548C;HarmonyOS&#x4EE5;&#x53CA;&#x6574;&#x4E2A;&#x5927;&#x7684;&#x9E3F;&#x8499;&#x751F;&#x6001;&#x7684;&#x53D1;&#x5C55;&#x505A;&#x4E00;&#x70B9;&#x8D21;&#x732E;&#x3002;</p>
<h3 id="&#x672C;&#x4E66;&#x7EC4;&#x7EC7;&#x7ED3;&#x6784;"><a name="&#x672C;&#x4E66;&#x7EC4;&#x7EC7;&#x7ED3;&#x6784;" class="plugin-anchor" href="#&#x672C;&#x4E66;&#x7EC4;&#x7EC7;&#x7ED3;&#x6784;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x672C;&#x4E66;&#x7EC4;&#x7EC7;&#x7ED3;&#x6784;</h3>
<p>&#x672C;&#x4E66;&#x4EE5;&#x5FAA;&#x5E8F;&#x6E10;&#x8FDB;&#x7684;&#x65B9;&#x5F0F;&#x4ECE;Flutter&#x4E0E; OpenHarmony /HarmonyOS&#x4ECB;&#x7ECD;&#x5165;&#x624B;&#xFF0C;&#x5230;&#x6700;&#x540E;&#x7684;&#x843D;&#x5730;&#x5B9E;&#x8DF5;&#xFF0C;&#x5206;&#x4E3A;&#x4E94;&#x7BC7;&#xFF0C;&#x5171;&#x8BA1; 16 &#x7AE0;&#xFF0C;&#x5404;&#x7BC7;&#x7684;&#x4E3B;&#x8981;&#x5185;&#x5BB9;&#x5982;&#x4E0B;&#xFF1A;</p>
<ul>
<li>&#x7B2C;&#x4E00;&#x7BC7;&#xFF0C;&#x5165;&#x95E8;&#x7BC7;&#xFF08;&#x7B2C;1&#x7AE0;~&#x7B2C;5&#x7AE0;&#xFF09;&#xFF0C;&#x5305;&#x62EC; Flutter &#x4E0E;OpenHarmony &#x7684;&#x53D1;&#x5C55;&#x5386;&#x7A0B;&#xFF0C;ArkTS/Dart&#x8BED;&#x6CD5;&#x7B80;&#x4ECB;&#xFF0C;Flutter/ArkUI&#x5F00;&#x53D1;&#x6846;&#x67B6;&#x7684;&#x5E38;&#x89C1;&#x57FA;&#x7840;&#x7EC4;&#x4EF6;&#x7684;&#x4F7F;&#x7528;&#x4EE5;&#x53CA;&#x9875;&#x9762;&#x7684;&#x5E03;&#x5C40;&#xFF0C;&#x901A;&#x8FC7;&#x672C;&#x7AE0;&#x8282;&#x7684;&#x5B66;&#x4E60;&#xFF0C;&#x8BFB;&#x8005;&#x53EF;&#x4EE5;&#x5F00;&#x53D1;&#x7B80;&#x5355;&#x7684;&#x9875;&#x9762;&#x3002;</li>
<li>&#x7B2C;&#x4E8C;&#x7BC7;&#xFF0C;&#x8FDB;&#x9636;&#x7BC7;&#xFF08;&#x7B2C;6&#x7AE0;~&#x7B2C;12&#x7AE0;&#xFF09;&#xFF0C;</li>
<li>&#x7B2C;&#x4E09;&#x7BC7;&#xFF0C;&#x9AD8;&#x9636;&#x7BC7;&#xFF08;&#x7B2C;13&#x7AE0;~&#x7B2C;16&#x7AE0;&#xFF09;&#xFF0C;&#x5305;&#x62EC; OpenHarmony &#x5B9E;&#x73B0;&#x4E07;&#x7269;&#x4E92;&#x8054;&#x7684;&#x6838;&#x5FC3;&#x5206;&#x5E03;&#x5F0F;&#x8F6F;&#x603B;&#x7EBF;&#x4ECB;&#x7ECD;&#xFF0C;&#x5B83;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;&#xFF1A;&#x539F;&#x5B50;&#x5316;&#x670D;&#x52A1;&#x548C;&#x670D;&#x52A1;&#x5361;&#x7247;&#xFF0C;&#x5206;&#x5E03;&#x5F0F;&#x6570;&#x636E;&#x5E93;&#xFF0C;&#x5206;&#x5E03;&#x5F0F;&#x76F8;&#x673A;&#x4EE5;&#x53CA;&#x5206;&#x5E03;&#x5F0F;&#x5C4F;&#x5E55;&#x7B49;&#x3002;&#x8BE5;&#x7AE0;&#x8282;&#x8FD8;&#x5728;&#x521B;&#x4F5C;&#x4E2D;&#x3002;</li>
<li>&#x7B2C;&#x56DB;&#x7BC7;&#xFF0C;&#x5B9E;&#x6218;&#x7BC7;&#xFF08;&#x7B2C;17&#x7AE0;~&#x7B2C;18&#x7AE0;&#xFF09;&#xFF0C;&#x901A;&#x8FC7;&#x6781;&#x7B80;&#x8BA1;&#x7B97;&#x5668;&#x9879;&#x76EE;&#x7ED9;&#x8BFB;&#x8005;&#x4E32;&#x8054;&#x4E00;&#x4E0B;&#x4EE5;&#x4E0A;&#x5404;&#x7AE0;&#x8282;&#x7684;&#x77E5;&#x8BC6;&#x70B9;&#xFF0C;&#x8BA9;&#x8BFB;&#x8005;&#x66F4;&#x6DF1;&#x5C42;&#x6B21;&#x7684;&#x7406;&#x89E3; OpenHarmony &#x5E94;&#x7528;&#x7684;&#x5F00;&#x53D1;&#x6D41;&#x7A0B;&#x4EE5;&#x53CA;&#x9879;&#x76EE;&#x5B9E;&#x6218;&#x4E2D;&#x5E38;&#x7528;&#x7684;&#x5F00;&#x53D1;&#x6280;&#x5DE7;&#x3002;</li>
<li>&#x7B2C;&#x4E94;&#x7BC7;&#xFF0C;&#x6E90;&#x7801;&#x7BC7;&#xFF08;&#x7B2C; 19 &#x7AE0;&#xFF09;&#xFF0C;&#x901A;&#x8FC7;&#x6E90;&#x7801;&#x5206;&#x6790;&#xFF0C;&#x8BB2;&#x89E3; OpenHarmony &#x5E94;&#x7528;&#x7684;&#x542F;&#x52A8;&#x8FC7;&#x7A0B;&#xFF0C;&#x6BD4;&#x5982; FA &#x7684;&#x542F;&#x52A8;&#xFF0C;abc &#x7684;&#x52A0;&#x8F7D;&#x548C;&#x89E3;&#x6790;&#x5E76;&#x751F;&#x6210; jsview &#x7684;&#x6D41;&#x7A0B;&#xFF0C;&#x5404;&#x8282;&#x70B9;&#x7684;&#x6784;&#x5EFA;&#x6D41;&#x7A0B;&#x53CA;&#x5404;&#x7ED3;&#x70B9;&#x7684;&#x6D4B;&#x91CF;&#x3001;&#x5E03;&#x5C40;&#x548C;&#x7ED8;&#x5236;&#x7B49;&#x64CD;&#x4F5C;&#xFF0C;&#x6700;&#x540E;&#x518D;&#x8BB2;&#x89E3;&#x4E00;&#x4E0B;&#x4E8B;&#x4EF6;&#x4F20;&#x9012;&#x8FC7;&#x7A0B;&#x3002;</li>
</ul>
<h3 id="&#x672C;&#x4E66;&#x8BFB;&#x8005;&#x5BF9;&#x8C61;"><a name="&#x672C;&#x4E66;&#x8BFB;&#x8005;&#x5BF9;&#x8C61;" class="plugin-anchor" href="#&#x672C;&#x4E66;&#x8BFB;&#x8005;&#x5BF9;&#x8C61;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x672C;&#x4E66;&#x8BFB;&#x8005;&#x5BF9;&#x8C61;</h3>
<ul>
<li>&#x8BFB;&#x8005;&#x81F3;&#x5C11;&#x719F;&#x6089;&#x4E00;&#x79CD;&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#xFF0C;&#x6700;&#x597D;&#x662F; JavaScript/&#x6216;&#x8005;Dart &#x3002;</li>
<li>&#x8BFB;&#x8005;&#x6700;&#x597D;&#x63A5;&#x89E6;&#x8FC7;&#x79FB;&#x52A8;&#x7AEF;&#x3001;Web &#x524D;&#x7AEF;&#x6216;&#x8005; PC &#x7AEF;&#x5F00;&#x53D1;&#x3002;</li>
<li>&#x672C;&#x4E66;&#x53EA;&#x662F;&#x7B80;&#x4ECB;&#x7C7B;&#x4E66;&#x7C4D;&#xFF0C;&#x4E0D;&#x9002;&#x5408;&#x7F16;&#x7A0B;&#x7684;&#x5165;&#x95E8;&#x8BFB;&#x7269;&#x3002;</li>
</ul>
<h3 id="&#x52D8;&#x8BEF;"><a name="&#x52D8;&#x8BEF;" class="plugin-anchor" href="#&#x52D8;&#x8BEF;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x52D8;&#x8BEF;</h3>
<p>&#x7B14;&#x8005;&#x5199;&#x8FD9;&#x672C;&#x7535;&#x5B50;&#x4E66;&#x4F7F;&#x7528;&#x7684; SDK &#x662F; NEXT &#x7248;&#x672C;&#xFF08;API 12&#xFF0C;5.0.0.71&#xFF09;&#xFF0C;&#x7531;&#x4E8E;ArkUI&#x5F00;&#x53D1;&#x6846;&#x67B6;&#x5728;&#x4E0D;&#x65AD;&#x66F4;&#x65B0;&#x4E2D;&#xFF0C;&#x672C;&#x4E66;&#x7684;&#x90E8;&#x5206;&#x5185;&#x5BB9;&#x53EF;&#x80FD;&#x4F1A;&#x548C;&#x65B0;&#x7248;&#x672C;&#x7684;&#x4E0D;&#x4E00;&#x81F4;&#xFF0C;&#x8BFB;&#x8005;&#x4EE5;&#x6700;&#x65B0;&#x7684;&#x7248;&#x672C;&#x4E3A;&#x51C6;&#xFF0C;&#x53E6;&#x5916;&#x7531;&#x4E8E;&#x65F6;&#x95F4;&#x4ED3;&#x4FC3;&#xFF0C;&#x672C;&#x4E66;&#x96BE;&#x514D;&#x6709;&#x9519;&#x8BEF;&#x4E4B;&#x5904;&#xFF0C;&#x5982;&#x679C;&#x8BFB;&#x8005;&#x53D1;&#x73B0;&#x9519;&#x8BEF;&#x6B22;&#x8FCE;&#x5728; <a href="https://gitee.com/ark-ui/arkui_in_action" target="_blank">https://gitee.com/ark-ui/arkui_in_action</a> &#x4E0A;&#x63D0;  <strong>Issue</strong>&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x52A0; QQ &#x7FA4;&#xFF08;<a href="https://qm.qq.com/cgi-bin/qm/qr?k=YBDKMU9Lt309QL_I1Lfa2jVpGwx65VSR&amp;jump_from=webapi" target="_blank">695438501</a>&#xFF09;&#x53CD;&#x9988;&#x95EE;&#x9898;&#x6216;&#x8005;&#x4EA4;&#x6D41;&#x6280;&#x672F;&#x3002;</p>
<h3 id="&#x81F4;&#x8C22;"><a name="&#x81F4;&#x8C22;" class="plugin-anchor" href="#&#x81F4;&#x8C22;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x81F4;&#x8C22;</h3>
<p>&#x7B14;&#x8005;&#x5199;&#x8FD9;&#x672C;&#x7535;&#x5B50;&#x4E66;&#x7684;&#x65F6;&#x5019;&#x4E3B;&#x8981;&#x53C2;&#x8003; OpenHarmony /Flutter&#x5B98;&#x65B9;&#x6587;&#x6863;&#x4EE5;&#x53CA; SDK &#x6E90;&#x7801;&#xFF0C;&#x671F;&#x95F4;&#x53D1;&#x73B0;&#x95EE;&#x9898;&#x540E;&#x5E76;&#x53CA;&#x65F6;&#x5728;  OpenHarmony &#x76F8;&#x5173;&#x4ED3;&#x5E93;&#x505A;&#x4E86;&#x53CD;&#x9988;&#xFF0C;&#x611F;&#x8C22; OpenHarmony &#x7684;&#x4E13;&#x5BB6;&#x4EEC;&#x7ED9;&#x505A;&#x4E86;&#x8010;&#x5FC3;&#x89E3;&#x7B54;&#x3002;&#x53E6;&#x5916;&#x975E;&#x5E38;&#x611F;&#x8C22;&#x5728; <a href="https://gitcode.com/nutpi/Flutter_Harmony" target="_blank">https://gitcode.com/nutpi/Flutter_Harmony</a> &#x4E0A;&#x548C; QQ &#xFF08;<a href="https://qm.qq.com/cgi-bin/qm/qr?k=YBDKMU9Lt309QL_I1Lfa2jVpGwx65VSR&amp;jump_from=webapi" target="_blank">695438501</a>&#xFF09;&#x7FA4;&#x91CC;&#x7ED9;&#x6211;&#x53CD;&#x9988;&#x95EE;&#x9898;&#x7684;&#x5C0F;&#x4F19;&#x4F34;&#xFF0C;&#x6700;&#x540E;&#x611F;&#x8C22;&#x6240;&#x6709;&#x4E3A; OpenHarmony &#x751F;&#x6001;&#x5EFA;&#x8BBE;&#x505A;&#x51FA;&#x8D21;&#x732E;&#x7684;&#x4EBA;&#xFF0C;&#x4F60;&#x4EEC;&#x662F;&#x6700;&#x68D2;&#x7684;&#xFF01;</p>
<footer class="page-footer"><span class="copyright">powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2024-10-31 19:06:55
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                </div>
                <script src="https://my.openwrite.cn/js/readmore.js"></script>
                <script>
                    var enablePlugin = false;
                    var allowDomain = "localhost";
                    if(allowDomain){
                        var currentDomain = location.hostname;
                        if ($.isArray(allowDomain)) {
                            $.each(allowDomain, function(index, item) {
                                if (currentDomain == item) {
                                    enablePlugin = true;
                                    return false;
                                }
                            });
                        }else{
                           if (currentDomain == allowDomain) {
                                enablePlugin = true;
                            }
                        }
                    }else{
                        enablePlugin = true;
                    }
                    
                    if(enablePlugin){
                        var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
                        if (!isMobile) {
                            var btw = new BTWPlugin();
                            btw.init({"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果","id":"vip-container"});
                        }
                    }
                </script> 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
          <div class="book-footer">
            
            <div class="donate">
              <div></div>
              <button class="donate-btn" onclick="showModal()">赞赏</button>
            </div>
             
            <div class="copyright"></div>
            
          </div>
          
        </div>
      </div>
      
    </div>

      
    <a
      href="为什么要写博客.md"
      class="
        navigation navigation-next
        navigation-unique
      "
      aria-label="Next page: 2.为什么要这个专栏？"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"1.前言","level":"1.1","depth":1,"next":{"title":"2.为什么要这个专栏？","level":"1.2","depth":1,"path":"为什么要写博客.md","ref":"为什么要写博客.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github-buttons@2.1.0","edit-link","splitter","tbfed-pagefooter","expandable-chapters","chapter-fold","back-to-top-button","code","pageview-count","popup","search-plus","-lunr","-search","splitter","-sharing","sharing-plus","theme-lou","mind-maps","emphasize","anchors","changyan","readmore","livereload","ace","livereload"],"root":".","styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"pluginsConfig":{"expandable-chapters":{}},"emphasize":{},"ace":{},"livereload":{},"splitter":{},"readmore":{"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link",".summary .divider"],"color":"#FF4848","book-anchor-title":"本章目录","copyright":{"author":"vx:nut_pie"},"forbidCopy":true,"logo":"assets/avatar.png","book-summary-title":"文章目录","search-placeholder":"输入关键字搜索","copyrightLogo":"assets/copyright.png","favicon":"assets/avatar.png","appleTouchIconPrecomposed152":"assets/avatar.png"},"changyan":{"appid":"cyvHoCPAs","conf":"0440cfc4168ba95d73cfc52dd4d5c60b"},"fontsettings":{"theme":"white","family":"sans","size":2},"mind-maps":{},"highlight":{},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"},"sharing":{"qq":false,"all":["qq","qzone","whatsapp","douban","facebook","google","instapaper","linkedin","messenger","twitter","weibo"],"douban":false,"facebook":false,"weibo":false,"twitter":false,"pocket":false,"google":false,"qzone":false},"edit-link":{"label":"编辑此页","base":"https://github.com/ITmxs/gitbook/edit/master/"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"坚果派","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://www.gitbook.com/","name":"坚果派官网"},{"target":"_blank","url":"https://www.npmjs.com/package/package","name":"ArkUI实战"},{"target":"_blank","url":"https://space.bilibili.com/480883651","name":"元服务开发实践"},{"target":"_blank","url":"https://blog.51cto.com/jianguo","name":"OpenHarmony应用开发"}],"footer":{"donate":{"wechat":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","message":"随意打赏，但不要超过一顿早餐钱 💕","wxpay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","alipay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png","nickname":"breeze","button":"打赏","wechatText":"微信","alipayText":"支付宝","title":"『赠人玫瑰 🌹 手有余香 』","avatar":"http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"},"copyright":true}}},"title":"Flutter for Harmony教程","language":"zh-hans","gitbook":"*","description":"Flutter for Harmony电子书教程"},"file":{"path":"README.md","mtime":"2024-10-31T11:06:55.039Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-10-31T11:07:00.228Z"},"basePath":".","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-mind-maps/mindmaps.dist.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-changyan/changyan.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

